<header></header>

{{#user.setup}}
<form id="search-form">
    <div class="form-group">
        <input id="{{form.search.id}}" placeholder="{{form.search.placeholder}}" />
        <button type="submit" class="{{form.search.css}}"></button>
    </div>
</form>
{{/user.setup}}

<nav id="navigation">
    {{#user.setup}}
        {{#navigation}}
            <a id="{{id}}" class="nav-links {{css}}" href="{{href}}">{{text}}</a>
        {{/navigation}}
    {{/user.setup}}
    {{^user.setup}}
        {{#setup.steps}}
            <a id="{{id}}" class="nav-links {{css}}" href="{{href}}">{{text}}</a>
        {{/setup.steps}}
    {{/user.setup}}
</nav>

{{#user.setup}}

    <div id="main-content" class="row-fluid">
        {{#dashboard.panels}}
            <div class="panel-wrapper {{css}}">
                <div id="{{id}}" class="panel panel-default">
                    {{#header}}<div class="panel-heading">{{{header}}}</div>{{/header}}
                    {{#body}}<div class="panel-body padless">{{{body}}}</div>{{/body}}
                </div>
            </div>
        {{/dashboard.panels}}
    </div>

    <nav id="mobile-footer">
        {{#mobile.footer}}
        <a href="{{href}}" class="{{css}}" id="{{id}}"><i class="{{icon}}"></i><span class="text">{{text}}</span></a>
        {{/mobile.footer}}
    </nav>

{{/user.setup}}
{{^user.setup}}
    
    <div id="main-content" class="row-fluid">
        
        {{#setup.panels}}
            <div class="panel-wrapper {{css}}">
                <div id="{{id}}" class="panel panel-default">
                    {{#header}}<div class="panel-heading">{{{header}}}</div>{{/header}}
                    {{#body}}<div class="panel-body padless">{{{body}}}</div>{{/body}}
                </div>
            </div>
        {{/setup.panels}}
        
        <div class="actions col-md-12">
            {{#setup.actions}}
                <a 
                    id="{{id}}" 
                    class="{{css}}" 
                    href="{{href}}"
                    {{#attributes}}
                        {{key}}="{{value}}"
                    {{/attributes}}
                >
                    {{text}}
                </a>
            {{/setup.actions}}
        </div>
        
    </div>

{{/user.setup}}

{{{modals}}}